package Service.ServiceImpl;

import Dao.DaoImpl.UserDaoImpl;
import Dao.UserDao;
import Service.UserService;
import domain.User;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class UserServiceImpl implements UserService {
    private UserDao dao = new UserDaoImpl();
    @Override
    public List<User> findUserByUsername(String username) {
        return dao.findUserByUsername(username);
    }

    @Override
    public void addUser(User user) {
        dao.addUser(user);
    }

    @Override
    public void updateUser(User user) {
        dao.updateUser(user);
    }

    @Override
    public void deleteUser(String username) {
        dao.deleteUser(username);
    }

    @Override
    public List<User> fuzztSelectUser(HashMap<String, String> map) {
        return dao.fuzztSelectUser(map);
    }

    @Override
    public List<User> userList() {
        return dao.userList();
    }


}
